package getAge;

public class Test {
    private  int i;

    public int aMethod() {
        //static int i = 0;  //err 非静态成员方法不能调用静态变量，静态变量是属于类的，是类变量
//        this.i = i;
        this.i++;
        return this.i;
    }

    public static void main(String[] args) {
        Test test = new Test();
        test.aMethod();
        int j = test.aMethod();
        System.out.println(j);
    }
}
